package com.xiaoa.gossip.cluster.service.impl;

import com.xiaoa.gossip.cluster.command.NodeState;
import com.xiaoa.gossip.cluster.service.ClusterService;
import com.xiaoa.gossip.cluster.service.DataSoftService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author luokaichuang
 * @time 2020/6/23
 */
@Service
public class DataSoftServiceImpl implements DataSoftService {

    @Autowired
    private ClusterService clusterService;

    @Override
    public boolean prepareTransferSolt(String nodeId) {
        NodeState nodeState = clusterService.getNodeState(nodeId);

        return false;
    }

    @Override
    public boolean transmissionSoltToNode(String nodeId, List<Integer> solts) {
        return false;
    }

    @Override
    public int hasSolt(String key) {
        return 0;
    }

    @Override
    public void allocationSolt() {

    }

    @Override
    public void allocationSolt(List<Integer> solt, String noteId) {

    }
}
